package com.erpx.api.refund;

import com.erpx.api.WdtClient;
import com.erpx.api.CommonConstants;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class RefundQueryService {
    public static void queryRefund() {
        WdtClient client = new WdtClient(CommonConstants.sid, CommonConstants.appkey, CommonConstants.appSecret, CommonConstants.baseUrl);

        Map<String, String> params = new HashMap<String, String>();
        params.put("page_no", "0");
        params.put("page_size", "100");
        params.put("modified_from", "2025-01-07 00:40:00");
        params.put("modified_to", "2025-01-07 16:30:00");
        //        params.put("status", "10,30,40,80,90");
        try {
            String response = client.execute("refund_query.php", params);
            System.out.println(response);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
